//
//  PKRequestManager.h
//  PianKe
//
//  Created by lanou on 15/12/22.
//  Copyright © 2015年 KFC. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^Finish)(NSData *data);
typedef void(^Error)(NSError *error);


// 枚举
typedef NS_ENUM(NSInteger, RequestType){
    POST,
    GET
};

@interface PKRequestManager : NSObject


// 请求数据 + 本地存储的地址
+ (void)requestWithUrlString:(NSString *)urlString
                      parDic:(NSDictionary *)parDic
                      Method:(RequestType)method
                      finish:(Finish)finish
                       error:(Error)error;

@end
